package com.modlin.selenium;

import org.testng.*;
import org.testng.annotations.*;
import org.openqa.selenium.*;

/**
 * @author v.berdutin
 * 
 */

public class Logout extends com.modlin.selenium.pages.TestBase {

	public void clickLogout() {
		click(driver.findElement(By.linkText("Logout")));
	}

	@Test
	public void testLogout() throws Exception {
		enterLoginForm("principal@us.us", "12345678");
		Assert.assertEquals(driver.findElement(By.xpath("//div/div[2]")).getText(), "Jhon Smitt");
		clickLogout();
		Assert.assertTrue(driver.findElement(By.cssSelector("input.butn")).isDisplayed());
	}

}
